Prev | Next

Flagpoles - Placing A Flag In A Scene

<< | >>

Handling Alignment Issues

Overview

In the previous section, you attached a flag to a flagpole, one that had been positioned and rotated to fit into a scene. You saw that the default attachment location wasn't quite right.

In this section, you'll learn how to align your flag with the layer you're attaching it to.

This section uses the results of the previous section. If you don't have that scene available, you may start with "House With Flag.aep" in the "Flag Tutorials" folder.

By default, a flag attached to a 3D layer will be centered on that layer. Note that factors such as which edges are locked and which direction the wind is blowing will affect how this may look.

Offsetting The Flag

3D Flag has three controls that will allow you to offset the flag on the flagpole. You may move the flag in the X, Y, or Z direction.

NOTE: When offsetting a flag, X always means shifting the flag left or right along the flagpole, regardless of the orientation of the flagpole. Y always means up or down. Z always means in or out. The image below demonstrates this.



Aligning The Flag To The Pole

Let's offset the flag so that the locked points on the left edge line up with middle of the flagpole. We'll do this by shifting the flag to the right.

  1. Select the "Holiday Flag" layer in the Timeline window.
  2. Open the Effect Controls window (Effect> Effect Controls).
  3. Find the Offset X parameter. Click on the default value of 0.0 and drag to the right (that is, scrub the value to the right).

    Notice that as the Offset X value increases, the flag shifts to the right.
  4. Continue offsetting the flag to the right until the left edge of the flag lines up with the flagpole.



    Your Offset X value should be around 200, which is half the width of the flag image. This makes sense. To shift the left edge of the flag to the center of the flagpole, we moved it over by half its width.
  5. We'd like the flag to sit a little higher on the pole. Locate the Offset Y parameter and scrub that value, making the Offset Y value larger. Notice that increasing the Offset Y value moves the flag up the flagpole.

    Continue increasing the value until the top of the flag sits just below the top of the flagpole. A value of 20 should be about right.

    At this point, the flag is properly aligned to the pole.
  6. As a final step, we'll remove the wind from the scene so that the flag hangs from the pole. Locate the Wind Speed parameter and set it to 0.



    Since we aligned the locked points on the flag to the flagpole, turning off the wind allowed the flag to hang while the locked points remained attached to the pole.

    Your scene is now complete.

You have just learned how to offset your flag so that the locked points of the flag are aligned with the flagpole. Once aligned, the locked points on the flag remained fixed to the flagpole, even when the wind speed changed. In the next section, In Sync: Animating The Flagpole, you'll see that the locked points will stay with the flagpole even when the pole is animated.